package com.three.box.entity;

import java.util.Optional;

public class ApiResult<T> {
    public static final int SUCCESS = 0;
    public static final int FAILURE = -1; //

    public int errno; // string
    public String errmsg; // string
    public T data;

    public Optional<T> transform(){
        return Optional.of(data);
    }
}
